NULL);
cogl_material_set_layer_combine (material_template, 2,
"RGBA = MODULATE (PREVIOUS, "
- "PRIMARY)",
+ "CONSTANT)",
NULL);
}
priv->material = cogl_material_copy (material_template);
clutter_alpha_get_alpha (priv->alpha));
cogl_material_set_layer_combine_constant (priv->material, 1, &constant);
- cogl_material_set_color4ub (priv->material,
- paint_opacity, paint_opacity,
- paint_opacity, paint_opacity);
+ cogl_color_set_from_4ub (&constant,
+ paint_opacity, paint_opacity,
+ paint_opacity, paint_opacity);
+ cogl_material_set_layer_combine_constant (priv->material, 2, &constant);
cogl_set_source (priv->material);
cogl_rectangle_with_multitexture_coords (priv->offscreen_box.x1,